Skip to main content

RankedMax

RankedMax[list,n] gives the nth largest element in list.

RankedMax[list,-n] gives the nth smallest element in list.

Please visit the official Wolfram Language Reference for more details and examples on core symbols.